<% if @interfaces -%>
<% @interfaces.each do |nic|  -%>
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", ATTR{address}=="<%= nic['mac'] %>", NAME="<%= nic['name'] %>"
<% end -%>
<% end -%>
